package base2dev.core.model;

import java.util.List;

import base2dev.core.model.imp.EntityBase;

public interface Bag<T extends EntityBase> extends Iterable<T>{

	T get(long id);
	
	List<T> getAll();
	
	Bag<T> add(T entity);
	
	Bag<T> remove(T entity);

	Bag<T> byDescription(String desc);	
	
}
